﻿<%@ page title="" language="C#" masterpagefile="~/MasterPage.master" autoeventwireup="true" inherits="Product_CusCUD, App_Web_pp-xqmhj" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Content" runat="Server">
    <asp:UpdatePanel ID="pnlUpdate" runat="server">
        <ContentTemplate>
            <asp:Panel ID="pnlIndustryType" runat="server">
                <asp:RadioButtonList ID="rbIndustry" runat="server" RepeatDirection="Horizontal"
                    AutoPostBack="true" OnSelectedIndexChanged="rbIndustry_SelectedIndexChanged">
                    <asp:ListItem Value="manufac">Manufacture</asp:ListItem>
                    <asp:ListItem Value="trader">Trader</asp:ListItem>
                    <asp:ListItem Value="supplier">Supplier</asp:ListItem>
                </asp:RadioButtonList>
            </asp:Panel>
            <asp:UpdateProgress ID="pr" runat="server">
                <ProgressTemplate>
                    <div id="progressBackgroundFilter">
                    </div>
                    <div id="processMessage">
                        Configuring...<br />
                        <center>
                            <asp:Image ImageUrl="~/App_Themes/MAX/images/loading5.gif" ID="limg" runat="server" /></center>
                    </div>
                </ProgressTemplate>
            </asp:UpdateProgress>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdatePanel ID="pnlCRD" runat="server">
        <ContentTemplate>
            <asp:Panel ID="pnlAdd" runat="server" CssClass="panelContent">
                <asp:Table ID="Tb1" runat="server" CellPadding="2" CellSpacing="2">
                    <asp:TableRow>
                        <asp:TableCell>
                            <asp:Label ID="lblDate" runat="server" /></asp:TableCell><asp:TableCell>
                                <asp:TextBox ID="txtDate" runat="server" Width="70px" />
                                <ajaxToolkit:CalendarExtender ID="txtDateEntender" runat="server" PopupPosition="BottomRight"
                                    Format="dd-MMM-yyyy" TargetControlID="txtDate" />
                            </asp:TableCell><asp:TableCell>
                                <asp:TextBox ID="txtCategory" runat="server" Visible="false" /></asp:TableCell></asp:TableRow><asp:TableRow>
                        <asp:TableCell>
                            <asp:Label ID="lblName" runat="server" /></asp:TableCell><asp:TableCell>
                                <asp:TextBox ID="txtNameMs" runat="server" CssClass="TBox" /></asp:TableCell><asp:TableCell>
                                    <asp:Label ID="lblIndustry" runat="server" /></asp:TableCell><asp:TableCell>
                                        <asp:DropDownList ID="drpIndustry" runat="server" AppendDataBoundItems="true" OnSelectedIndexChanged="drpIndustry_SelectedChanged">
                                            <asp:ListItem>Select Industry...</asp:ListItem>
                                        </asp:DropDownList>
                                    </asp:TableCell></asp:TableRow><asp:TableRow>
                        <asp:TableCell>
                            <asp:Label ID="lblStreet" runat="server" /></asp:TableCell><asp:TableCell>
                                <asp:TextBox ID="txtStreet" runat="server" CssClass="TBox" /></asp:TableCell></asp:TableRow><asp:TableRow>
                        <asp:TableCell>
                            <asp:Label ID="lblLocation" runat="server" /></asp:TableCell><asp:TableCell>
                                <asp:TextBox ID="txtLocation" runat="server" CssClass="TBox" /></asp:TableCell></asp:TableRow><asp:TableRow>
                        <asp:TableCell>
                            <asp:Label ID="lblCity" runat="server" /></asp:TableCell><asp:TableCell>
                                <asp:TextBox ID="txtCity" runat="server" CssClass="TBox" /></asp:TableCell></asp:TableRow><asp:TableRow>
                        <asp:TableCell>
                            <asp:Label ID="lblZip" runat="server" /></asp:TableCell><asp:TableCell>
                                <asp:TextBox ID="txtZip" runat="server" CssClass="TBox" /></asp:TableCell><asp:TableCell>
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtZip"
                                        Display="Static" ErrorMessage='<img src="../App_Themes/MAX/images/warning.ico">'
                                        ValidationExpression="\d{5}?">
                                    </asp:RegularExpressionValidator>
                                </asp:TableCell></asp:TableRow><asp:TableRow>
                        <asp:TableCell>
                            <asp:Label ID="lblState" runat="server" /></asp:TableCell><asp:TableCell>
                                <asp:TextBox ID="txtState" runat="server" CssClass="TBox" /></asp:TableCell></asp:TableRow><asp:TableRow>
                        <asp:TableCell>Email</asp:TableCell><asp:TableCell>
                            <asp:TextBox ID="txtemail" runat="server" CssClass="TBox" /></asp:TableCell><asp:TableCell>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtemail"
                                    ErrorMessage='<img src="../App_Themes/MAX/images/warning.ico">' ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">
                                </asp:RegularExpressionValidator>
                            </asp:TableCell><asp:TableCell>
                                <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server"
                                    TargetControlID="txtZip" FilterType="Numbers" />
                            </asp:TableCell></asp:TableRow></asp:Table><asp:Table ID="tblname" runat="server">
                <asp:TableFooterRow>
                    <asp:TableHeaderCell>Contact Name</asp:TableHeaderCell><asp:TableCell>
                        <asp:TextBox ID="txtFirstname" runat="server" /></asp:TableCell><asp:TableCell>
                            <asp:TextBox ID="txtLastname" runat="server" /></asp:TableCell><asp:TableCell>
                                <asp:TextBox ID="txtMiddlename" runat="server" /></asp:TableCell><asp:TableHeaderCell>Mobile</asp:TableHeaderCell><asp:TableCell>
                                    <asp:TextBox ID="txtMobileC" runat="server" MaxLength="10" />
                                    <ajaxToolkit:FilteredTextBoxExtender ID="mobileFilter" runat="server" TargetControlID="txtMobileC"
                                        FilterType="Numbers" />
                                </asp:TableCell><asp:TableCell>
                                    <asp:RegularExpressionValidator ID="MobileValidation" runat="server" ControlToValidate="txtMobileC"
                                        Display="Static" ErrorMessage='<img src="../App_Themes/MAX/images/warning.ico">'
                                        ValidationExpression="\d{10}?">
                                    </asp:RegularExpressionValidator>
                                </asp:TableCell></asp:TableFooterRow></asp:Table><asp:Table ID="tblcrd" runat="server">
                <asp:TableRow>
                    <asp:TableCell>
                        <asp:Button ID="btnSubmit" runat="server" Text="Insert" OnClick="btnSubmit_Click" />
                    </asp:TableCell><asp:TableCell>
                        <asp:Button ID="btnCancel" runat="server" Text="Cancel" />
                    </asp:TableCell></asp:TableRow></asp:Table></asp:Panel></ContentTemplate></asp:UpdatePanel></asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="RightContent" runat="Server">
</asp:Content>
